home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Prenice(2) Oct. 1, 1991 Prenice(2)
-
-
- N✓NA✓AM✓ME✓E
- Prenice - change process priority
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- LONG Prenice( WORD pid, WORD delta );
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- _✓P_✓r_✓e_✓n_✓i_✓c_✓e changes the base process niceness for process _✓p_✓i_✓d
- by the amount _✓d_✓e_✓l_✓t_✓a. Higher levels of niceness correspond
- to decreased priority in scheduling, so positive values
- for delta cause the corresponding process to be scheduled
- less often. Conversely, negative values for delta cause
- the process priority to be increased.
-
- R✓RE✓ET✓TU✓UR✓RN✓NS✓S
- The current priority for the process, if successful. This
- is a 16 bit signed quantity. The default priority is 0;
- higher priority processes have larger priority values,
- lower priority ones have smaller values.
-
- EFILNF if the indicated process does not exist (note that
- since this is a 32 bit negative number it can be distin-
- guished from the WORD negative numbers returned for low
- priority processes)
-
- EACCDN if the process has a different user id
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- _✓P_✓n_✓i_✓c_✓e(2)
-
- B✓BU✓UG✓GS✓S
- The scheduling algorithm is pretty weird, so it's hard to
- predict exactly what effect process priorities have.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Version 0.9 MiNT Programmer's Manual 1
-
-
-